<html>
<head>
    <meta charset="utf-8">
    <title>Freemarker入门</title>
</head>
<body>
<#--引入标签头-->
	<#include "hade.ftl">

<#--定义一个集合数据-->
	<#assign persons=[
    {"name":"盖伦","age":"22","address":"德玛西亚大陆"},
    {"name":"小法","age":"552","address":"虚空乱流大陆"},
    {"name":"诺手","age":"33","address":"诺克萨斯大陆"},
    {"name":"刀妹","age":"25","address":"德玛西亚大陆"}
    ]>

	<#if persons??>
		存在persons数据,如下所示: <br>
        <#list persons as p>
		 姓名:    ${p.name} , 年龄:    ${p.age}, 所属势力:    ${p.address} <br>
        </#list>
    <#else>
		不存在persons数据,请检查数据
    </#if>
</body>
</html>